package com.csw.service;

import com.csw.entity.File;
import com.csw.entity.User;

import java.util.List;

public interface FileService {
    void addFile(File file);

    File selectFileById(String fileId);

    void deleteFileById(String fileId);

    void deleteFileByFolderId(String id);


    void updateCount(int newCount, String id);

    List<File> queryAllById(String did, User user, int status);

    List<File> selectFileByPidAndMd5(String id, String checkMd5);

    List<File> selectByMd5(String checkMd5);

    List<File> queryFileByPid(String id);

    List<File> selectAllFileByFatherFolder(String path, User user, int status);

    void updatePathAndPid(File file);

    List<File> queryAllByIddirYd(String firstDid, User user, String status, String dirYd);

    List<File> queryAllByinSearchName(String inSearchName, User user, int status);

    void updateNameById(File file);


    File queryByUserStatusNamePath(User user, int status, File file);

    void updatePathById(File file);

    void updateDid(String fileId, String filePid);

    List<File> selectByStatus(int status, User user);

    void updateStatus(File file);

    List<File> queryLater(User user, int status);

    void updateTime(File file);
}
